/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package kotionokyurievna.gmail.com.copycol.logic;

import java.util.Arrays;
import java.util.Collection;

/**
 *
 * @author Kateryna_Reznik
 */
public class CopierClass <T> {
    
    public CopierClass(){
        
    }
    /**
     * Copies elements from array to collection.
     * Adds elements from array to the end of collection
     * @param a - array
     * @param c - Collection
     */
    public void fromArrayToCollection(T[] a, Collection<T> c){
        c.addAll(Arrays.asList(a));
    }
    
    public String toString(){
        return getClass().getName();
    }
}
